<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/account_1109.css">

<title>基本资料</title>
</head>

<body>
<form method="post" action="up_datum.php" name="form1" id="form1" onsubmit="return check(this)" target="hidFrame">  
<div class="account_base_div">
  <img src="img/fbzl.gif" border="0" />
  <div class="border_div">
  <div class="grda">
    <p><span class="text fl"><font class="fc_C85493">*</font> 登录名：</span><span class="fl">15250804113</span></p>
	<p><span class="text fl"><font class="fc_C85493">*</font> 姓名：</span><input name="name" id="name" type="text" class="input fl"  value="VIPSHOP会员" size="30" /></p>
   <p><span class="text fl"><font class="fc_C85493">*</font> 性别：</span>
   <label for="male" class="fl"><input name="sex" type="radio" id="male"  class="radio fl" value="1" checked /> 男</label>
      <label for="female" class="fl"> <input id="female" name="sex" type="radio" class="radio fl" value="0" />女</label></p>
	  <p><span class="text fl"><font class="fc_C85493">*</font> 生日：</span><input name="birthday" id="birthday" type="text" class="input fl"  value="{$profile.birthdy}" size="10" /><span class="fl">(生日格式：20101206)</span></p>
      <p><span class="text fl"><font class="fc_C85493">*</font> 移动电话：</span><input name="mobile_phone" id="phone" type="text" class="input fl"  value="{$profile.mobile_phone}" size="30" /></p>
		<p><span class="text fl">固定电话：</span><input name="telephone" id="telephone" type="text" class="input fl"  value="{$profile.home_phone}" size="18" /><span class="fl">(格式如：020-86315027)</span></p>
	  <p><span class="text fl"><font class="fc_C85493">*</font> 所在地：</span><select name="province" value="" class="fl" id="province" size="1" onChange="GetCity('document.form1','province','city','county')">
	  <option value="">省份</option>
	  </select>
	<select name="city" id="city" value="" class="fl input_2" size="1" onChange="GetCounty('document.form1','province','city','county')">
	<option value="">地级市</option>
	</select>
	<select name="county" id="county" class="fl" value="">
	<option value="" selected>地区</option>
	</select></p>
	 <p><span class="text fl"><font class="fc_C85493">*</font> 地址：</span><input name="address" id="address" type="text" class="input fl"  value="" size="50" /></p>
	   <p><span class="text fl"><font class="fc_C85493">*</font> 联系邮箱：</span><input name="touch_mail" id="touch_mail" type="text" class="input fl"  value="" size="30" />
		   <input name="postmen" type="hidden" value="510000" /></p>
		   <p>温馨提示请填写有效邮箱地址，以便接收唯品会的通知及订单信息，建议使用QQ、hotmail等邮箱</p>

</div>
</div>   
<p class="base_width"><input type="image"  src="img/tj.gif" class="fl"/> 
<img src="img/qbchongz.gif" class="grad_btn fl" /></p></div>
</form>
</body>

<script language="javascript" src="js/Province.js"></script>
<script language="javascript" src="js/GetProvince.js"></script>
<script type="text/javascript" src="js/show_div.js"></script> 
<script>

function check(obj)
{
  if(!obj.name.value)
  {
    alert("用户名不能为空！");
	obj.name.focus();
	return false;
  }

  if(!/^\d{8}$/.test(obj.birthday.value) || obj.birthday.value.length!=8)
  {
    alert("生日格式不对，请正确填写.如 20121230");
	obj.birthday.focus();
	return false;
  }
  year = obj.birthday.value.substr(0,4);
  month = obj.birthday.value.substr(4,2);
  date = obj.birthday.value.substr(6,2);

  if(month>12 || month<01)
  {
    alert("月份不能大于12,也不能小于1");
	return false;
  }
  if(date>31)
  {
    alert("日期不能大于31");
	return false;
  }
  
  if((month!=01)&&(month!=03)&&(month!=05)&&(month!=7)&&(month!=8)&&(month!=10)&&(month!=12))
  {
     
     if(date==31)
	 {
	   alert("该月份没有31日,请重新填写");
	   return false;
	 }
  }
 if((month==02))
 {
   if(date>=30)
   {
     alert("该月份没有30日，请重新填写");
	 return false;
   }
 }
  if(!obj.touch_mail.value)
  {
    alert("联系邮箱不能空!");
	obj.touch_mail.focus();
	return false;
  }
	reg=/^([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
	if(!reg.test(obj.touch_mail.value)){  
		alert("非法的电子邮件,请正确填写!");  
		obj.touch_mail.focus();  
		return false;    
	}
	if(!/^\d+$/.test(obj.phone.value))
	{
	  alert("移动电话只能是数字！");
	  obj.phone.focus;
	  return false;
	}
	if(!obj.address.value)
	{
	  alert("地址不能为空！");
	  obj.telephone.focus();
	  return false;
	}
	/*if(obj.postmen.value==""||obj.postmen.value.length!=6)
	{
	  alert("邮编不能为空且只能是6位！");
	  obj.postmen.focus();
	  return false;
	}*/
	return true;
}
function success_fun()
{
   alert("success");
  //parent.showlayer();
  //parent.document.getElementById("inner_div").innerHTML="<div style='text-align:center;'>资料修改成功！</div><div></div>";
//  for(var i=0; i<document.all.tags("select").length;i++)
//		document.all.tags("select")[i].style.display="none";
}
</script>

<script language="javascript">
GetProvince('document.form1','province','city','county','');
</script>
</html>

<!-- SiteCatalyst code version: H.24.1.
Copyright 1996-2011 Adobe, Inc. All Rights Reserved
More info available at http://www.omniture.com 
<script src="/static/js/s_code.js?v=1.01" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript"><!--
/* You may give each page an identifying name, server, and channel on
the next lines. */
oit_account('我的账户：基本资料','我的账户页面','我的账户页面');
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)//</script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//</script><noscript><img src="http://vipshop.d2.sc.omtrdc.net/b/ss/vipshop-prd/1/H.24.1--NS/0"
height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.24.1. -->
